import { http } from '@/utils/http'
import type { ProfileParams, BaseProfile } from '@/types/member'

export const putMemberProfileApi = (data: ProfileParams) => {
  return http<ProfileParams>({
    method: 'PUT',
    url: '/user/profile',
    data,
  })
}

export const getMemberProfileApi = () => {
  return http<BaseProfile>({
    method: 'GET',
    url: '/user/profile',
  })
}
